<%-- 
    Document   : userList
    Created on : Dec 27, 2012, 9:07:16 PM
    Author     : Ramesh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h2 class="TABLE_HEADER">
            <spring:message code="user.list"/>
        </h2>
        ${data}
        <table class="TABLE_DATA">
            <c:forEach items="${users}" var="user" varStatus="loop">
                <tr>
                    <td>
                        <a href="editUser?id=${user.id}">
                            <c:out value="${user.id}"/>
                        </a>
                    </td>
                    <td>
                        <c:out value="${user.firstName}"/>
                    </td>
                    <td>
                        <c:out value="${user.lastName}"/>
                    </td>
                    <td>
                        <c:out value="${user.email}"/>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </body>
</html>

